package ua.abihle.aichallenge;

import ua.abihle.basic.Tile;

public class Target {
	private TaskType targetType;

	private Tile location;

	public Target(TaskType targetType, Tile location) {
		super();
		this.targetType = targetType;
		this.location = location;
	}

	public TaskType getTargetType() {
		return targetType;
	}

	public void setTargetType(TaskType targetType) {
		this.targetType = targetType;
	}

	public Tile getLocation() {
		return location;
	}

	public void setLocation(Tile location) {
		this.location = location;
	}

	@Override
	public int hashCode() {
		return location.hashCode();
	}

	@Override
	public boolean equals(Object obj) {
		return equals(location);
	}
}
